package operato.AdminOp;import Books.Book;import Books.BookList;import operato.IOperator;import java.util.Scanner;public class AddOperator implements IOperator {    @Override    public void work(BookList booklist) {        int bookSize = booklist.getBookSize();        if(bookSize >= booklist.getMaxBookSize())        {            System.out.println("书架已满！");            return;        }        Scanner sc = new Scanner(System.in);        Scanner scdouble = new Scanner(System.in);        System.out.printf("请输入书名-> ");        String name = sc.nextLine();        System.out.printf("请输入作者-> ");        String auther = sc.nextLine();        System.out.printf("请输入价格-> ");        double price = scdouble.nextDouble();        System.out.printf("请输入书类型-> ");        String type = sc.nextLine();        booklist.setBook(bookSize,new Book(name,auther,price,type));        booklist.setBookSize(bookSize + 1);    }}